from django.urls import path, include

from . import views
from rest_framework.routers import SimpleRouter

router = SimpleRouter()

router.register('coursecategory', views.CourseCategoryView, 'coursecategory')
router.register('course', views.CourseView, 'course')
router.register('chapters', views.CourseChapterView, 'chapters')
router.register('search', views.CourseSearchView, 'search')

urlpatterns = [

    path('', include(router.urls)),

]
